import request from '@/common/request.js'

const api = {}
//登录
api.login = params => request.globalRequest(`/api/store/user/login`, 'POST', params, 1,'登录中')

api.worklist = params => request.globalRequest(`/api/store/shop/worklist`, 'POST', params, 1,'')
api.register = params => request.globalRequest(`/api/store/user/register`, 'POST', params, 1,'注册中')
api.sendMessage  = params => request.globalRequest(`/api/sms/sendMessage`, 'POST', params, 1,'')

api.addprofile = params => request.globalRequest(`/api/store/shop/addprofile`, 'POST', params, 1,'资料提交中')

api.shopIndex = params => request.globalRequest(`/api/v1/index/index`, 'POST', params, 1,'')
api.skuDetail = params => request.globalRequest(`/api/v1/goods/detail`, 'POST', params, 1,'获取数据中')


api.addAdress = params => request.globalRequest(`/api/v1/useraddress/add`, 'POST', params, 1,'添加中')
api.addOrder = params => request.globalRequest(`/api/v2/order/buyPay`, 'POST', params, 1,'下单中')
api.getOrderList = params => request.globalRequest(`/api/v1/order/getList`, 'POST', params, 1,'获取中')

api.getDefault = params => request.globalRequest(`/api/v1/useraddress/getDefault`, 'POST', params, 1,'获取中')

api.info = params => request.globalRequest(`/api/store/user/info`, 'POST', params, 1,'')
api.detail = params => request.globalRequest(`/api/store/shop/info`, 'POST', params, 1,'')
api.userList = params => request.globalRequest(`/api/store/shop/userList`, 'POST', params, 1,'')

api.userWorkHistory = params => request.globalRequest(`/api/store/shop/userWorkHistory`, 'POST', params, 1,'')
api.sureClock = params => request.globalRequest(`/api/store/shop/sureClock`, 'POST', params, 1,'确认中')
api.applyUserList = params => request.globalRequest(`/api/store/shop/applyUserList`, 'POST', params, 1,'')
api.backMoney = params => request.globalRequest(`/api/store/shop/backMoney`, 'POST', params, 1,'')
api.worktype = params => request.globalRequest(`/api/v1/work/worktype`, 'POST', params, 1,'')
api.publish = params => request.globalRequest(`/api/store/shop/publish`, 'POST', params, 1,'发布中')
api.jobDetail = params => request.globalRequest(`/api/store/shop/jobDetail`, 'POST', params, 1,'')
api.want = params => request.globalRequest(`/api/store/shop/want`, 'POST', params, 1,'处理中')
api.jobDetail2 = params => request.globalRequest(`/api/store/shop/jobDetail2`, 'POST', params, 1,'')

api.want = params => request.globalRequest(`/api/store/shop/want`, 'POST', params, 1,'处理中')
api.doUserJob = params => request.globalRequest(`/api/store/shop/doUserJob`, 'POST', params, 1,'处理中')
api.myworkList = params => request.globalRequest(`/api/v1/work/myworkList`, 'POST', params, 1,'')
api.selectShopList = params => request.globalRequest(`/api/store/shop/selectShopList`, 'POST', params, 1,'')

api.addShopAdmin = params => request.globalRequest(`/api/store/shop/addShopAdmin`, 'POST', params, 1,'添加中')
api.adminList = params => request.globalRequest(`/api/store/shop/adminList`, 'POST', params, 1,'')
api.deleteAdmin = params => request.globalRequest(`/api/store/shop/deleteAdmin`, 'POST', params, 1,'删除中')
api.shopList = params => request.globalRequest(`/api/store/shop/shopList`, 'POST', params, 1,'')

api.init = params => request.globalRequest(`/api/store/shop/init`, 'POST', params, 1,'')

api.logout = params => request.globalRequest(`/api/store/user/logout`, 'POST', params, 1,'注销中')
api.init = params => request.globalRequest(`/api/store/shop/init`, 'POST', params, 1,'')
api.updateOnlineStatus = params => request.globalRequest(`/api/store/shop/updateOnlineStatus`, 'POST', params, 1,'')



export default api